package com.dykj.fireFighting.api.fire.maintenanceplan.service;

import com.dykj.fireFighting.api.fire.maintenanceplan.dto.RoutineMaintenanceDto;
import com.dykj.fireFighting.api.fire.maintenanceplan.entity.RoutineMaintenance;
import com.dykj.fireFighting.api.fire.maintenanceplan.vo.RoutineMaintenanceNumVo;
import com.dykj.fireFighting.api.fire.maintenanceplan.vo.RoutineMaintenanceVo;
import com.dykj.fireFighting.common.core.service.IBaseService;
import com.dykj.fireFighting.common.core.vo.PageVo;

import java.util.List;
import java.util.Map;


/**
 * 例行维保记录
 *
 * @Author zly
 * @Date 2021-07-28 16:30:03
 */
public interface IRoutineMaintenanceService extends IBaseService<RoutineMaintenance> {


    PageVo<RoutineMaintenanceVo> queryList(RoutineMaintenanceDto routineMaintenanceDto);

    List<RoutineMaintenanceNumVo> getNumStatistic(String wbId);

    /**
     * 根据不同条件获取维保数量
     *
     * @param params wbId：维保单位id，type：year-查询本年,month-查询本月,week-查询本周
     * @return
     */
    int getMaintenanceNum(Map<String, String> params);

    RoutineMaintenance getRoutineMaintenanceMessage(String id);

    /**
     * 例行维保 维保机构当月评价得分详情
     *
     * @param routineMaintenanceDto
     * @return
     */
    List<RoutineMaintenanceVo> queryRoutineMaintenanceEvaluationInfoList(RoutineMaintenanceDto routineMaintenanceDto);
}

